import tests.function.LoginFunction;
import tests.function.RegisterFunction;
import tests.page.*;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description: 执行测试用例
 * User: Spider-Man
 * Date: 2025-09-20
 * Time: 20:27
 */
public class RunCase {
    public static void main(String[] args) throws IOException {
        page();
    }
    public static void page() throws IOException {
        //管理员用户注册
        RegisterPage registerPage = new RegisterPage();
        registerPage.registerAdminPage();
        //用户登录
        LoginPage loginPage = new LoginPage();
        loginPage.loginPageRight();
        //活动管理
        ActivityManagementPage activity = new ActivityManagementPage();
        activity.activityListPage();
        activity.createActivityPage();
        //奖品管理
        PrizeManagementPage prize = new PrizeManagementPage();
        prize.activityListPage();
        prize.createPrizePage();
        //人员管理
        PersonnelManagementPage person = new PersonnelManagementPage();
        person.personnelListPage();
        person.createPersonnel();

    }

    public static void function() throws IOException, InterruptedException {
        //注册用户
        RegisterFunction register = new RegisterFunction();
        register.registerAdmin();
        //登录
       /* LoginFunction login = new LoginFunction();
        login.loginSuc();
        login.loginFail1();
        login.loginFail2();*/
        //后台管理(活动列表)


        //新建抽奖活动

        //奖品管理(奖品列表)

        //创建奖品

        //人员管理(人员列表)

        //注册用户

    }
}
